

using System;
using Abp.Application.Services.Dto;
using Abp.Domain.Entities.Auditing;
using System.ComponentModel.DataAnnotations;
using Yozeev.SystemConfig;
using System.Collections.Generic;

namespace Yozeev.SystemConfig.Dtos
{
    public class MenuTreeDto 
    {
		public MenuTreeDto()
		{
			IsAllOperation = true;
			OperationNames = new List<string>();
		}
		/// <summary>
		/// id
		/// </summary>
		[Required(ErrorMessage = "id不能为空")]
		public string id { get; set; }



		/// <summary>
		/// text
		/// </summary>
		[Required(ErrorMessage= "text不能为空")]
		public string text { get; set; }



		/// <summary>
		/// i18n
		/// </summary>
		[Required(ErrorMessage= "i18n不能为空")]
		public string i18n { get; set; }



		/// <summary>
		/// link
		/// </summary>
		[Required(ErrorMessage= "link不能为空")]
		public string link { get; set; }



		/// <summary>
		/// icon
		/// </summary>
		[Required(ErrorMessage= "icon不能为空")]
		public string icon { get; set; }



		/// <summary>
		/// acl
		/// </summary>
		[Required(ErrorMessage = "acl不能为空")]
		public string acl { get; set; }



		/// <summary>
		/// 子菜单列表
		/// </summary>
		public List<MenuTreeDto> Childrens{ get; set; }

		/// <summary>
		/// 是否显示所有操作
		/// </summary>
		public bool? IsAllOperation { get; set; }
		/// <summary>
		/// 可用操作名称列表
		/// </summary>
		public List<string> OperationNames { get; set; }
	}
}